package com.weishu.house.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 商户表
 * </p>
 *
 * @author gao
 * @since 2021-05-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_business")
public class Business implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String name;

    private String corporation;

    private Integer province;

    private Integer city;

    private Integer county;

    private String address;

    /**
     * 1 个人职业房东 2 公司化公寓
     */
    private Integer type;

    private Integer status;

    private Integer userId;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    private Integer reserve1;

    private Integer reserve2;

    private String reserve3;

    private String reserve4;

    private String reserve5;

    /**
     * 营业执照
     */
    private String url;

    /**
     * 统一信征码
     */
    private String zheng;

    /**
     * 头像
     */
    private String headPicture;

    private String legalPersonName;

    /**
     * 身份证号
     */
    private String certNum;

    /**
     * 身份证正面
     */
    private String certPicture;

    /**
     * 身份证反面
     */
    private String certPicture2;

    /**
     * 手持身份证
     */
    private String certPicture3;

    /**
     * 品牌名
     */
    private String brandName;


    /**
     * 公寓网址
     */
    private String apartmentUrl;

    /**
     * 客服热线
     */
    private String serviceHotline;

    @TableField(exist = false)
    private String username;


}
